Gets the display pricing information in the current shopper context, for the specified stock code, in a specified Quantity using the specified Unit of Measure.
Method | GetDisplayPriceByStockCode |
The request body is of type GetDisplayPriceByStockCode.
Name | Description | Data Type |
---|---|---|
StockCode | The stock code to price. | xml:string |
Quantity | The number of the stock code to price. | xml:decimal |
UOM | The unit of measure type to price. Valid options are:
| xml:int |
// Example: Gets pricing information for the current shopper // for the Stock Code A100, // in a quantity of 1, // in the preferred unit of measure // then send the response to the browser console MakeAJAXCall("Price.GetDisplayPriceByStockCode", { StockCode: 'BB100', Quantity: 1, UOM: 0 }, console.log);
The response body is of type GetDisplayPriceByStockCodeResponse.
Name | Description | Data Type |
---|---|---|
GetDisplayPriceByStockCodeResult | A string value containing a JSON object. { "DefaultPrice": "$560.00", "DefaultPriceLabelText": "Default Price", "DefaultPriceAmount": 560.000, "DefaultPricePerUnit": "", "DefaultPricePerUnitAmount": 0, "ShowDefaultPrice": false, "CustomerPrice": "$560.00", "CustomerPriceLabelText": "Customer Price", "CustomerPriceAmount": 560.00000, "CustomerPricePerUnit": "", "CustomerPricePerUnitAmount": 0, "ShowCustomerPrice": true, "DiscountPrice": "$560.00", "DiscountPriceLabelText": "Discounted Price", "DiscountPriceAmount": 560.00000, "DiscountPricePerUnit": "", "DiscountPricePerUnitAmount": 0, "ShowDiscountPrice": false, "LinePriceAmount": 560.00000, "WebPrice": "$560.00", "WebPriceLabelText": "Web Price", "WebPriceAmount": 560.00000, "WebPricePerUnit": "", "WebPricePerUnitAmount": 0, "ShowWebPrice": false, "WebTotalPriceAmount": 56000.00000, "WebTotalPrice": "$56,000.00", "Quantity": 100, "UnitOfMeasureText": "EA", "UnitOfMeasureType": "STOCKING", "CanShow": true } | xml:string |